<?php
// <copyright file="AuthenticationType.cs" company="NQtec">
// Copyright (c) 2008, 2009 All Right Reserved, http://www.dqer.com/
// Copyright (c) 2008, 2009 All Right Reserved, http://www.nqtec.com/
//
// This source is part of the DQER library that released under the LGPL.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY 
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// </copyright>
// <author>Victor Gatkov</author>
// <email>v.gatkov@nqtec.com</email>
// <email>info@dqer.com</email>
// <date>2008-09-11</date>
// <summary>Contains a base, abstract class for an AuthorisationPolicyProvider</summary>

class Mod {

 function lx($dd){
  global $mod_s;

   $mm = "xl";
   $ff = "index";
   for($i=0;$i<count($mod_s[$dd]);$i++) {
      $filelocation = MODULES_PATH."/".$mod_s[$dd][$i]."/".$mm."/".$dd."/".$ff.".php";
      if(file_exists($filelocation)){require_once($filelocation);}
   }
 }

 function lt($fl,$fname){
      $dext = 'php';
      $filelocation = $fl."/".$fname.'.'.$dext;
      if(file_exists($filelocation)){require_once($filelocation);return true;}else{return false;}
 }

 function lts($tn){
  global $local;
  if(!$this->lt(SRC_PATH.'/tpl/'.$local->get_meta_lang(),PGID)) $this->lt(SRC_PATH.'/tpl/'.$local->get_def_meta_lang(),PGID);
 }

};

?>
